<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div>
    <h1>微博列表页面</h1>
    <div v-for="weibo in weibos">
        <h3>{{weibo.content}}</h3>
        <p><img :src="weibo.url" width="200px"></p>
    </div>
</div>
<!--引入axios和vue-->
<script src="https://cdn.bootcdn.net/ajax/libs/axios/0.21.1/axios.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.6.14/vue.js"></script>
<script>
    let v= new Vue({
        el:"body>div",
        data:{
            weibos:[]
        },
        created(){
            axios.get("/select").then(function (response) {
                v.weibos = response.data;
            })
        }
    })
</script>

</body>
</html>